home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / DTS Sample Code / System 7.0 Samples / DTS.Utilities / Folders31.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-01-30  |  1.8 KB  |  58 lines  |  [TEXT/MPS ]

  1. /************************************************************
  2.  
  3. Created: Friday, October 20, 1989 at 4:42 AM
  4.     Folders.h
  5.     C Interface to the Macintosh Libraries
  6.  
  7.  
  8.     Copyright Apple Computer, Inc.    1989-90
  9.     All rights reserved
  10.  
  11. ************************************************************/
  12.  
  13.  
  14. #ifndef __FOLDERS__
  15. #define __FOLDERS__
  16.  
  17. #ifndef __TYPES__
  18. #include <Types.h>
  19. #endif
  20.  
  21. #ifndef __FILES__
  22. #include <Files.h>
  23. #endif
  24.  
  25. enum {kOnSystemDisk = 0x8000};
  26.  
  27. #define kCreateFolder                    (true)
  28. #define kDontCreateFolder                (false)
  29.  
  30. #define kSystemFolderType                ('macs')        /* the system folder */
  31. #define kDesktopFolderType                ('desk')        /* the desktop folder; objects in this folder show on the desktop */
  32. #define kTrashFolderType                ('trsh')        /* the trash folder; objects in this folder show up in the trash */
  33. #define kWhereToEmptyTrashFolderType    ('empt')        /* the “empty trash” folder; Finder starts emptying from here down */
  34.  
  35. #define kPrintMonitorDocsFolderType        ('prnt')        /* Print Monitor documents */
  36.  
  37. #define kStartupFolderType                ('strt')        /* Finder objects (applications, documents, DAs, aliases to …) to open at startup go here */
  38. #define kAppleMenuFolderType            ('amnu')        /* Finder objects to put into the Apple menu go here */
  39. #define kControlPanelFolderType            ('ctrl')        /* Control Panels go here (may contain INITs) */
  40. #define kExtensionFolderType            ('extn')        /* Finder extensions go here */
  41.  
  42. #define kPreferencesFolderType            ('pref')        /* preferences for applications go here */
  43. #define kTemporaryFolderType            ('temp')        /* temporary files go here (deleted periodically, but don’t rely on it) */
  44.  
  45. #ifdef __cplusplus
  46. extern "C" {
  47. #endif
  48.  
  49. pascal OSErr
  50. FindFolder(short vRefNum, OSType, Boolean createFolder, short* foundVRefNum, long* foundDirID)
  51.     = { 0x7000, 0xA823 };
  52.  
  53. #ifdef __cplusplus
  54. }
  55. #endif
  56.  
  57. #endif
  58.